package com.egao.orderB.biz;

import com.egao.common.core.damon.results.PageResult2;
import com.egao.common.system.entity.User;
import com.egao.orderB.entity.AddressFactory;
import com.egao.common.core.web.JsonResult;
import org.apache.poi.ss.formula.functions.T;
import java.util.List;

/**
 *
 * 数据层接口
 * @author : Doman
 * @date : 2020-08-07 09:56:44
 * @version ：1.0
 */
public interface AddressFactoryBiz {

	/** 获取实体类表格
	 * @param page
	 * @param addressFactory
	 * @return
	 */
	public JsonResult list(PageResult2<T> page, AddressFactory addressFactory, User loginUser) throws Exception;
	
	/**
	 * 获取实体类表格
	 * @param addressFactory
	 * @return
	 */
	public List<AddressFactory> list(AddressFactory addressFactory, User loginUser);
	
	/**
	 * 根据Id查询实体类
	 * @param addressFactory
	 * @return
	 */
	public AddressFactory getById(AddressFactory addressFactory);
	
	/**
	 * 保存实体类
	 * @param addressFactory
	 * @param loginUser
	 * @return
	 */
	public Integer save(AddressFactory addressFactory, User loginUser);
	
	/**
	 * 修改实体类
	 * @param addressFactory
	 * @param loginUser
	 * @return
	 */
	public boolean update(AddressFactory addressFactory, User loginUser);

	/**
	 * 修改实体类
	 * @param addressFactory
	 * @param loginUser
	 * @return
	 */
	public boolean updateFstate(AddressFactory addressFactory, User loginUser);

	/**
	 * 删除实体类
	 * @param addressFactory
	 * @param loginUser
	 * @return
	 */
	public boolean remove(AddressFactory addressFactory, User loginUser);

}
